package com.dkm.biz.gl.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.biz.gl.domain.Feedback;
import com.dkm.biz.gl.repository.FeedbackRepository;
import com.dkm.biz.gl.persistence.dao.FeedbackQueryDao;
import com.dkm.biz.gl.persistence.entity.FeedbackPo;

/**
 * 对象功能:t_gl_feedback Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2017-06-19 08:30:54
 */
@Repository
public class FeedbackRepositoryImpl extends AbstractRepository<String, FeedbackPo,Feedback> implements FeedbackRepository{
	  
	@Resource
	private  FeedbackQueryDao feedbackQueryDao;

	public Feedback newInstance() {
		FeedbackPo po = new FeedbackPo();
		Feedback feedback = SpringHelper.getBean(Feedback.class);
		feedback.setData(po);
		return feedback;
	}

	public Feedback newInstance(FeedbackPo po) {
		Feedback feedback = SpringHelper.getBean(Feedback.class);
		feedback.setData(po);
		return feedback;
	} 
	
	@Override
	protected IQueryDao<String, FeedbackPo> getQueryDao() {
		return feedbackQueryDao;
	}
	
}
